<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class SpeakerResume extends Model
{
    use HasDateTimeFormatter;
    // use SoftDeletes;

    /**
     * 数据表主键
     * @var string
     */
    protected $pk = 'id';

    /**
     * 数据库表名称
     * @var string
     */
    protected $table = 'eb_speaker_resume';

    // protected $type = [
    //     'speaker_resume'      =>  'array',
    // ];


    /**
     * 关联模型speaker
     */
    public function speaker()
    {
        return $this->belongsTo(Speaker::class, 'speaker_id', 'id');
    }
}
